<template>
  <!-- 实验室检查详情 -->
  <section>
    <table class="table-box">
      <thead>
        <tr>
          <th>项目</th>
          <th>结果</th>
          <th>单位</th>
          <th>性质</th>
          <th>参考范围</th>
        </tr>
      </thead>
      <tbody>
        <tr v-for="(item,index) in tableList" :key="index">
          <td>{{item.itemName}}</td>
          <td>{{item.realResult}}</td>
          <td>{{item.unit}}</td>
          <td>{{item.conclusion}}</td>
          <th>{{item.referPrint}}</th>
        </tr>
      </tbody>
    </table>
  </section>
</template>
<script>
export default {
  props: ["queryId"],
  data() {
    return {
      tableList: []
    };
  },
  mounted() {
    const th = this;
    th.getData();
  },
  methods: {
    getData() {
      const th = this;
      let j = {
        queryId: th.queryId
      };
      th.$api.lisfindCheckDetail(j).then(res => {
        if (res.executed) {
            th.tableList=res.data;
        }
      });
    }
  }
};
</script>